#include "mediaplayerproxy.h"

#include "ktv/ktv.h"
#include "mediaPlayer.h"

MediaPlayerProxy::MediaPlayerProxy(KTV *k, MediaPlayer *mp)
    : GUI(k), ktv(k), mediaPlayer(mp)
{
}

void MediaPlayerProxy::up()
{
    mediaPlayer->turnUp();
}

void MediaPlayerProxy::down()
{
    mediaPlayer->turnDown();
}

void MediaPlayerProxy::left()
{
    // nothing.
}

void MediaPlayerProxy::right()
{
    ktv->nextSong();
    mediaPlayer->nextFile();
}

void MediaPlayerProxy::exchange()
{
    ktv->exchange();
}
